(spaces-string): Simplify and add doc string.
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 Aug 2006 12:06:54 +0000 (12:06 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 18 Aug 2006 12:06:54 +0000 (12:06 +0000)
lisp/rect.el

index be3a65ccd6ae70612765eea4bf5c6a03d44ddbe6..9515733ef2b708d4db5aa42a3c8e323b08df5a9a 100644 (file)
@@ -181,12 +181,9 @@ the function is called."
 
 ;; this one is untouched --dv
 (defun spaces-string (n)
+  "Returns a string with N spaces."
   (if (<= n 8) (aref spaces-strings n)
-    (let ((val ""))
-      (while (> n 8)
-       (setq val (concat "        " val)
-             n (- n 8)))
-      (concat val (aref spaces-strings n)))))
+    (make-string n ? )))
 
 ;;;###autoload
 (defun delete-rectangle (start end &optional fill)